<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="persistent.dao.*,persistent.impl.*" %>
<%@ page import="model.Vuser" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP三种注释方法</title>
</head>
<script type="text/javascript">
</script>
<body>
<center>
	<% UserDAOImpl idao = new UserDAOImpl(); %>
	<% 
		Vuser vuser = new Vuser();
	 %>
	<% vuser=idao.getVUserByID("王小明"); %>
	<% Object name[]={vuser.getUserid(),vuser.getNickname(),vuser.getPwd(),
	vuser.getLogintime(),vuser.getCreatetime(),vuser.getAgend(),vuser.getAnthority(),vuser.getUsertype()}; %>
	<table border=1 width=400px>
	<%
		for(int i=0;i<name.length;i++){
			out.println("<tr><td>"+name[i]+"</td></tr>");
		}
	 %>
	</table>	
</center>
	<center style="margin-top:5%">
		<div>
		<ul>
			<% String top[]={"官网首页","学校地址","学校历史","教师资源","关于我们"}; %>
			<% for(int i=0;i<top.length;i++){
				out.println("<a href='http://www.baidu.com' <li style='list-style-type:none,margin-left:10%'>"+top[i]+"</li></a>");
			}
			%>	
		</ul>
	</div>
	
	<div>
		<% 
			String name1="admin";
			if(name1=="admin"){
		%>
			<button>编辑用户</button>
			<button>删除用户</button>
		<% 
			}else{
		%>
			<button hidden>编辑用户</button>
			<button hidden>删除用户</button>
		<%
			}
		%>	
		
	</div>	
</center>	
</body>
</html>